package java_mem;

/**
 * java内存
 */
public class Main {
    public static void main(String[] args) {
        Runtime runtime = Runtime.getRuntime();
        System.out.println("剩余内存"+runtime.freeMemory());
        System.out.println("总共内存"+runtime.totalMemory());
        System.out.println("最大内存"+runtime.maxMemory());


    }
}
